<extend name="zh_tw:Public:base" />
<block name="title">
    <title>支付結果</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/PayPage/result.css?rev=9c5a5d826c9f31eda791f2a22fca3153">
</block>
<block name="document">
    <div id="doc" class="container" data-value="{$payType}">
        <div id="doc-header" class="navbar">
            <a href="/Home/OrderPage/index?hotel={$hotelId}&no={$bookNumber}" class="pull-left navbar-icon"><span class="iconfont icon-chevronleft"></span></a>
            <div class="navbar-title typo-text-white-deep">支付結果</div>
        </div>
        <div class="centeral-container vertical-middle-block">
            <div class="centeral-content vertical-middle-block-cell">
                <if condition="$error">
                    <div id="error">
                        <div class="row vertical-margin">
                            <div id="errorContent" class="col-xs-12 text-sm text-center typo-text-black-light wrap-content">{$error}</div>
                        </div>
                    </div>
                <else />
                    <eq name="isUserLogined" value="0">
                        <div id="loginNeeded">
                            <div class="row vertical-margin">
                                <div class="col-xs-12 nowrap-content text-sm text-center typo-text-black-light">您還未登錄</div>
                            </div>
                            <div class="row vertical-margin">
                                <a href="/Home/PublicPage/login?hotel={$hotelId}" class="col-xs-8 col-xs-offset-2 btn-primary btn-raised">登錄</a>
                            </div>
                        </div>
                    <else/>
                        <div id="info">
                            <div class="row">
                                <div class="col-xs-12 nowrap-content text-center typo-title wrap-content">
                                    <if condition="$payResult">支付成功<else/>支付失敗</if>
                                </div>
                            </div>
                            <div class="row">
                                <a href="/Home/OrderPage/index?hotel={$hotelId}&no={$bookNumber}" class="col-xs-8 col-xs-offset-2 btn-primary btn-raised">返回</a>
                            </div>
                        </div>
                    </eq>
                </if>
            </div>
        </div>
    </div>
</block>
<block name="extendFootJs">
</block>
